package com.xuxueli.applyModules.exception;

import lombok.Data;

/**
 * 外源自定义异常
 */
@Data
public class SourceException extends RuntimeException {

    private String code;
    private String message;

    public SourceException() {
        super();
    }

    public SourceException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public SourceException(String message) {
        super(message);
        this.message = message;
    }

    public SourceException(String message, Throwable cause) {
        super(message, cause);
    }

    public SourceException(Throwable cause) {
        super(cause);
    }

    protected SourceException(String message, Throwable cause, boolean enableSuppression,
                              boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
